package com.runfast.waimai.dao.model;

import java.io.Serializable;

public class RunfastBusinessHasType implements Serializable {
    private Integer id;

    /**
     * 一级级分类id
     */
    private Integer firstid;

    /**
     * 二级级分类id
     */
    private Integer secondid;

    /**
     * 商家id
     */
    private Integer businessid;

    /**
     * 分类类型（0：主分类；1：次分类）
     */
    private Integer type;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public RunfastBusinessHasType withId(Integer id) {
        this.setId(id);
        return this;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getFirstid() {
        return firstid;
    }

    public RunfastBusinessHasType withFirstid(Integer firstid) {
        this.setFirstid(firstid);
        return this;
    }

    public void setFirstid(Integer firstid) {
        this.firstid = firstid;
    }

    public Integer getSecondid() {
        return secondid;
    }

    public RunfastBusinessHasType withSecondid(Integer secondid) {
        this.setSecondid(secondid);
        return this;
    }

    public void setSecondid(Integer secondid) {
        this.secondid = secondid;
    }

    public Integer getBusinessid() {
        return businessid;
    }

    public RunfastBusinessHasType withBusinessid(Integer businessid) {
        this.setBusinessid(businessid);
        return this;
    }

    public void setBusinessid(Integer businessid) {
        this.businessid = businessid;
    }

    public Integer getType() {
        return type;
    }

    public RunfastBusinessHasType withType(Integer type) {
        this.setType(type);
        return this;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", firstid=").append(firstid);
        sb.append(", secondid=").append(secondid);
        sb.append(", businessid=").append(businessid);
        sb.append(", type=").append(type);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}